// import { ad } from "@/router/enums";

export default {
  path: "/ad",
  name: "Ad",
  meta: {
    icon: "ep:picture",
    title: "广告管理",
    rank: 5
  },
  children: [
    {
      path: "/ad/list",
      name: "AdList",
      component: () => import("@/views/ad/list/index.vue"),
      meta: {
        title: "广告列表",
        roles: ["admin", "operator"]
      }
    },
    {
      path: "/ad/position",
      name: "AdPosition",
      component: () => import("@/views/ad/position/index.vue"),
      meta: {
        title: "广告位管理",
        roles: ["admin", "operator"]
      }
    },
    {
      path: "/ad/form",
      name: "AdForm",
      component: () => import("@/views/ad/form/index.vue"),
      meta: {
        title: "新增广告",
        showLink: false,
        activePath: "/ad/list",
        roles: ["admin", "operator"]
      }
    },
    {
      path: "/ad/form/:id",
      name: "AdEdit",
      component: () => import("@/views/ad/form/index.vue"),
      meta: {
        title: "编辑广告",
        showLink: false,
        activePath: "/ad/list",
        roles: ["admin", "operator"]
      }
    },
    {
      path: "/ad/detail/:id",
      name: "AdDetail",
      component: () => import("@/views/ad/detail/index.vue"),
      meta: {
        title: "广告详情",
        showLink: false,
        activePath: "/ad/list",
        roles: ["admin", "operator"]
      }
    }
  ]
} satisfies RouteConfigsTable;